ci: run crates.io publish on release tags
authorFelix Krull <f_krull@gmx.de>
Tue, 3 Sep 2019 07:10:20 +0000 (09:10 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:54 +0000 (12:53 -0400)
rust-bindings/rust/.gitlab-ci.yml
rust-bindings/rust/README.md

index 861823bc9b2e56a455181e5f519ad0d1cb968826..da2a8bf1b480909fd723001066719f242806ea7b 100644 (file)
@@ -92,11 +92,13 @@ publish_ostree-sys:
   script:
   - cargo publish --verbose --manifest-path sys/Cargo.toml --token $CRATES_IO_TOKEN
   cache: {}
-  when: manual
+  only:
+  - /^ostree-sys\/.+$/
 
 publish_ostree:
   stage: publish
   script:
   - cargo publish --verbose --token $CRATES_IO_TOKEN
   cache: {}
-  when: manual
+  only:
+  - /^ostree\/.+$/
index 1ab24b2d5371a00a74c36a153858b87fefdd9a9c..a1b58df560d5fa9cb9819c1a16e9d7d4fbb7b2bb 100644 (file)
@@ -92,9 +92,9 @@ The version needs to be changed in the following places (if applicable):
 * in `Cargo.toml` for the main crate version
 * in `README.md` in the *Installing* section in case of major version bumps
 
-Then, run the publish jobs on the release commit. Main and -sys crate don't have
-to be released in lockstep. Then tag the commit as `ostree/x.y.z` and/or
-`ostree-sys/x.y.z`.
+ Then tag the commit as `ostree/x.y.z` and/or `ostree-sys/x.y.z`. This will run
+ the crates.io deployment jobs. Main and -sys crate don't have to be released in
+ lockstep.
 
 ## License
 The `ostree` crate is licensed under the MIT license. See the LICENSE file for
@@ -104,10 +104,10 @@ libostree itself is licensed under the LGPL2+. See its
 [licensing information](https://ostree.readthedocs.io#licensing) for more
 information.
 
-The libostree GIR file (`gir-files/OSTree-1.0.gir`) is derived from the 
+The libostree GIR file (`gir-files/OSTree-1.0.gir`) is derived from the
 libostree source code and is also licensed under the LGPL2+. A copy of the
 LGPL version 2 is included in the LICENSE.LGPL2 file.
 
 The remaining GIR files (`gir-files/*.gir`) are from the glib project and
 are licensed under the LGPL2.1+. A copy of the LGPL version 2.1 is included
-in the LICENSE.LGPL2.1 file. 
+in the LICENSE.LGPL2.1 file.